import { createRouter, createWebHistory } from 'vue-router'
import UserLogView from '@/views/UserLogView.vue'
import HomeView from '@/views/HomeView.vue'
import StatsView from '@/views/StatsView.vue'

const routes = [
  {
    path: '/',
    name: 'userlogs',
    component: UserLogView
  },
  {
    path: '/userlogs',
    name: 'userlogs-alias',
    component: UserLogView
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/stats',
    name: 'stats',
    component: StatsView
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router